package com.cl.crm.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * OrderHistory entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class OrderHistory implements java.io.Serializable {

	// Fields

	private Integer ohId;
	private CustomerInfo customerInfo;
	private String ohTime;
	private String ohDeliveryAddress;
	private Double ohMoney;
	private String ohState;
	private Set orderDetailses = new HashSet(0);

	// Constructors

	/** default constructor */
	public OrderHistory() {
	}

	/** minimal constructor */
	public OrderHistory(CustomerInfo customerInfo, String ohTime,
			String ohDeliveryAddress, Double ohMoney, String ohState) {
		this.customerInfo = customerInfo;
		this.ohTime = ohTime;
		this.ohDeliveryAddress = ohDeliveryAddress;
		this.ohMoney = ohMoney;
		this.ohState = ohState;
	}

	/** full constructor */
	public OrderHistory(CustomerInfo customerInfo, String ohTime,
			String ohDeliveryAddress, Double ohMoney, String ohState,
			Set orderDetailses) {
		this.customerInfo = customerInfo;
		this.ohTime = ohTime;
		this.ohDeliveryAddress = ohDeliveryAddress;
		this.ohMoney = ohMoney;
		this.ohState = ohState;
		this.orderDetailses = orderDetailses;
	}

	// Property accessors

	public Integer getOhId() {
		return this.ohId;
	}

	public void setOhId(Integer ohId) {
		this.ohId = ohId;
	}

	public CustomerInfo getCustomerInfo() {
		return this.customerInfo;
	}

	public void setCustomerInfo(CustomerInfo customerInfo) {
		this.customerInfo = customerInfo;
	}

	public String getOhTime() {
		return this.ohTime;
	}

	public void setOhTime(String ohTime) {
		this.ohTime = ohTime;
	}

	public String getOhDeliveryAddress() {
		return this.ohDeliveryAddress;
	}

	public void setOhDeliveryAddress(String ohDeliveryAddress) {
		this.ohDeliveryAddress = ohDeliveryAddress;
	}

	public Double getOhMoney() {
		return this.ohMoney;
	}

	public void setOhMoney(Double ohMoney) {
		this.ohMoney = ohMoney;
	}

	public String getOhState() {
		return this.ohState;
	}

	public void setOhState(String ohState) {
		this.ohState = ohState;
	}

	public Set getOrderDetailses() {
		return this.orderDetailses;
	}

	public void setOrderDetailses(Set orderDetailses) {
		this.orderDetailses = orderDetailses;
	}

}